<?php


namespace app\admin\controller;


use app\BaseController;
use think\facade\View;
use think\Request;

class Common extends BaseController
{


    //查看流程图
    public function flowchart(Request $request)
    {
        $id = $request->param('id');
        $table = $request->param('table');
        $common = new \app\admin\model\Common($id, $table);
        $data = $common->getCheckFlow();
        View::assign('taskList', $data['taskList']);
        View::assign("activityId", $data['activityId']);
        View::assign("history", $data['history']);
        View::assign("flowcontent", $data['flowcontent']);
        View::assign("flowContent", $data['flowcontent']);
        return View::fetch('administration/flowchart');
    }

}